package com.chenxin.interact.controller;

import com.chenxin.common.core.controller.BaseController;
import com.chenxin.common.core.page.TableDataInfo;
import com.chenxin.interact.domain.vo.SrmToWmsDeliverDtVO;
import com.chenxin.interact.service.ISrmToWmsDeliverDtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/interact/srmToWmsDeliverDt")
public class SrmToWmsDeliverDtController extends BaseController {
    @Autowired
    private ISrmToWmsDeliverDtService srmToWmsDeliverDtService;

    /**
     * 查询送货单信息
     */
    @PreAuthorize("@ss.hasPermi('wms:srmToWmsDeliverDt:list')")
    @GetMapping("/list")
    public TableDataInfo list(SrmToWmsDeliverDtVO dtVo) {
        startPage();
        List<SrmToWmsDeliverDtVO> list = srmToWmsDeliverDtService.selectSrmToWmsDeliverDtList(dtVo);
        return getDataTable(list);
    }
}
